package name.luoyong.hibernate.Init;

import org.hibernate.cfg.Configuration;
import org.hibernate.tool.hbm2ddl.SchemaExport;
/**
 * 初始化数据库
 * @author Administrator
 *
 */
public class IniDB {
	public static void main(String[] args) {
		Configuration conf=new Configuration().configure();   
	    
		  SchemaExport se=new SchemaExport(conf);   
		    
		  se.create(true, true); 
	}
}
